package usf.gwt.ui.bootstrap.client;

import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.ui.Widget;

public class InLineListLayout extends Layout {
	
	@Override
	protected Element initWidget() {
		return Document.get().createULElement();
	}

	@Override
	protected void initStyle() {
		getElement().setClassName("list-inline");
		getElement().setAttribute("style","display:inline-flex;");
	}
	
	@Override
	public void add(Widget child) {
		Element li = Document.get().createLIElement();
		getElement().appendChild(li);
		add(child, li);
	}
	
}
